import React, { Component } from "react";
import { Switch, Route, Redirect } from "react-router-dom";
import ConponHome from "./index";
import AddConpon from "./addconpon";

export default class ConponRouter extends Component {
  render() {
    return (
      <Switch>
        <Route path="/conpon" component={ConponHome} exact />
        <Route path="/conpon/add" component={AddConpon} />
        <Redirect to="/conpon" />
      </Switch>
    );
  }
}
